{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h3 class="panel-title">设计文件信息</h3>
    </div>
    <div class="panel-body">
      <table class="table table-striped .table-bordered  table-hover">
        <tr class="info">
          <th class="text-right col-md-4">属性</td>
          <th class="">参数</td>
        </tr>
        <tr>
          <td class="text-right">编号</td>
          <td class="">{$document.code}</td>
        </tr>
        <tr>
          <td class="text-right">名称</td>
          <td class="">{$document.title}</td>
        </tr>
        <tr>
          <td class="text-right">增加记录code</td>
          <td class="">{$document.create_code}</td>
        </tr>
        <tr>
          <td class="text-right">增加记录姓名</td>
          <td class="">{$document.create_name}</td>
        </tr>
        <tr>
          <td class="text-right">增加记录时间</td>
          <td class="">{$document.create_time}</td>
        </tr>
        <tr>
          <td class="text-right">增加时间,工作日</td>
          <td class="">{$document.create_time}</td>
        </tr>
        <tr>
          <td class="text-right">更新记录时间</td>
          <td class="">{$document.update_time}</td>
        </tr>
        <tr>
          <td class="text-right">更新-增加,时间差</td>
          <td class="">{$document.delta_time}</td>
        </tr>
        <tr>
          <td class="text-right">详细内容</td>
          <td class="">{$document.detail}</td>
        </tr>
        <!-- 注:此段为演示用,并无数据来源 ↓ -->
        <tr>
          <td class="text-right">费用</td>
          <td class=""><span class="glyphicon glyphicon-yen" aria-hidden="true"></span>500</td>
        </tr>
        <!-- 注:此段为演示用,并无数据来源 ↑ -->
        <tr>
          <td class="text-right">是否某事物</td>
          <td class="">{$document.is_sth}</td>
        </tr>
        <tr>
          <td class="text-right">某事物数量</td>
          <td class="">{$document.sth_num_unit}</td>
        </tr>
        <tr>
          <td class="text-right">状态</td>
          <td class="">{$document.static_text}</td>
        </tr>
        <tr>
          <td class="text-right">图片</td>
          <td><img src="{:url('/uploads/'.$document.pic_name)}" class="img-responsive img-thumbnail" alt="暂无照片..."></td>
        </tr>
      </table>
      <div class="panel-group" role="tablist">
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="collapseListGroupHeading2">
							<a class="collapsed" role="button" data-toggle="collapse" href="#collapseListGroup2" aria-expanded="true" aria-controls="collapseListGroup2">
								CAP1400文件 <span class="badge">{$documentProcessNum}</span>
							</a>
					</div>
					<div id="collapseListGroup2" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading2">
            <table class="table table-condensed table-hover">
              <thead>
                <tr>
                  <th>序号</th>
                  <th>阶段</th>
                  <th>处理人</th>
                  <th>流程开始时间</th>
                  <th>处理时间</th>
                  <th>处理意见</th>
                  <th>下一位</th>
                </tr>
              </thead>
              <tbody>
                {volist name="documentProcess" id="Process"}
                <tr class="{$Process.execute_code==$Request.cookie.login_code?='danger'}">
                  <th scope="row">{$i}</th>
                  <td>{$Process.process_static_title}</td>
                  <td>{$Process.execute_title}</td>
                  <td>{$Process.create_time}</td>
                  <td>{$Process.update_time}</td>
                  <td>{$Process.execute_opinion}</td>
                  <td>{$Process.next_execute_code}</td>
                </tr>
                {/volist}
              </tbody>
            </table>
					</div>
				</div>
			</div>
      <div class="text-center">
        <a href="{:url('office/document/index')}"  class="btn btn-primary">返  回 <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span></a>
        <a href="{:url('office/document/edit','id='.$document.id)}"  class="btn btn-primary {$document.create_code!==$Request.cookie.login_code?='hidden'}">编  辑 <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
        <!-- <a href="{:url('office/document/edit_process','id='.$document.id)}"  class="btn btn-primary {$document.static>1?='hidden'}" {$document.create_name!==$Request.cookie.login_name?="disabled"} >开启流程 <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a> -->
      </div>
    </div>
  </div>
</div>